/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --tertiary-color: #2a2a2a;
    --accent-color: #00b4d8;
    --accent-secondary: #0077b6;
    --text-primary: #ffffff;
    --text-secondary: #c7c7c7;
    --text-muted: #8a8a8a;
    --border-color: #404040;
    --border-light: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(0, 119, 182, 0.1) 100%);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Sophisticated background */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.02;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 119, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 180, 216, 0.05) 0%, transparent 50%);
}

.geometric-shape {
    position: absolute;
    background: var(--gradient-subtle);
    border: 1px solid rgba(0, 180, 216, 0.1);
    animation: subtleFloat 30s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    top: 70%;
    right: 12%;
    animation-delay: 8s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    bottom: 25%;
    left: 15%;
    animation-delay: 16s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    border-radius: 30px;
    top: 40%;
    right: 35%;
    animation-delay: 24s;
}

@keyframes subtleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.1); 
        opacity: 0.6;
    }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    color: var(--text-primary);
    animation: titleReveal 1.2s ease-out;
}

.title-line:nth-child(1) {
    color: var(--accent-color);
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
    color: var(--text-primary);
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.subtitle-text {
    font-weight: 500;
}

.subtitle-separator {
    color: var(--accent-color);
    font-weight: 700;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

.hero-description strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Sophisticated data visualization */
.hero-visual {
    animation: slideInRight 1s ease-out;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-visualization {
    position: relative;
    width: 280px;
    height: 280px;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    background: var(--gradient-subtle);
}

.data-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: subtlePulse 4s ease-in-out infinite;
}

.node-1 {
    top: 25%;
    left: 25%;
    animation-delay: 0s;
}

.node-2 {
    top: 15%;
    right: 25%;
    animation-delay: 1s;
}

.node-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
}

.node-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

.node-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 0.5s;
    width: 16px;
    height: 16px;
}

.data-connection {
    position: absolute;
    height: 1px;
    background: var(--accent-color);
    opacity: 0.4;
    animation: connectionFlow 6s ease-in-out infinite;
}

.conn-1 {
    top: 30%;
    left: 30%;
    width: 60px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.conn-2 {
    top: 20%;
    right: 30%;
    width: 45px;
    transform: rotate(-30deg);
    animation-delay: 1.5s;
}

.conn-3 {
    bottom: 30%;
    left: 20%;
    width: 50px;
    transform: rotate(60deg);
    animation-delay: 3s;
}

.conn-4 {
    bottom: 25%;
    right: 25%;
    width: 40px;
    transform: rotate(-45deg);
    animation-delay: 4.5s;
}

@keyframes subtlePulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.8; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
    }
}

@keyframes connectionFlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes titleReveal {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.section-line {
    width: 100px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-paragraph {
    margin-bottom: 1.5rem;
}

.about-paragraph strong {
    color: var(--accent-color);
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--gradient-accent);
    color: var(--primary-color);
}

.project-type {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--border-color);
    color: var(--text-secondary);
}

.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.3rem 0.8rem;
    background: var(--border-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--text-primary);
}

/* Contact section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    padding: 1.8rem 2rem;
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(0, 119, 182, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent-color);
    background: var(--tertiary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.15);
}

.contact-item:hover::before {
    opacity: 1;
}

.contact-details {
    width: 100%;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.contact-value:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Contact form */
.contact-form {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.form-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border: none;
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .visual-container {
        height: 300px;
    }
    
    .data-visualization {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
    }
    
    .nav-links {
        gap: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 2rem 1.5rem;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .visual-container {
        height: 250px;
        margin-top: 1rem;
    }
    
    .data-visualization {
        width: 200px;
        height: 200px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        flex: 1;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .hero {
        padding: 1.5rem 1rem;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        gap: 0.6rem;
    }
    
    .subtitle-separator {
        font-size: 0.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .visual-container {
        height: 200px;
    }
    
    .data-visualization {
        width: 180px;
        height: 180px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-line {
        width: 80px;
        height: 3px;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .contact-item {
        padding: 1.5rem 1.2rem;
        text-align: left;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.3rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .form-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .visual-container {
        height: 180px;
    }
    
    .data-visualization {
        width: 160px;
        height: 160px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .project-card {
        padding: 1.2rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
}