:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(22, 28, 45, 0.4);
    --card-border: rgba(255, 255, 255, 0.05);
    --primary: #38bdf8;
    --primary-hover: #0ea5e9;
    --secondary: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-glow: rgba(56, 189, 248, 0.15);
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(129, 140, 248, 0.07) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #ffffff;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    padding: 80px 8% 100px 8%;
    min-height: 90vh;
}

.hero-content {
    max-width: 720px;
}

.tagline {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.hero-content h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: #0b0f19;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 1.5px solid var(--card-border);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: none;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30px;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.15);
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    opacity: 0.25;
    filter: blur(20px);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    background-color: #1e293b;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section {
    padding: 100px 8%;
    border-top: 1px solid var(--card-border);
}

.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff;
}

.section-title span {
    color: var(--primary);
}

/* About Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.about-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-3px);
}

.metric-number {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Skills Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(22, 28, 45, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #ffffff;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.skill-card:hover .skill-tag {
    color: var(--text-main);
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.1);
}

/* Experience Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--card-border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary);
    transition: all 0.3s;
    z-index: 2;
}

.timeline-item:hover .timeline-marker {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.15);
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(22, 28, 45, 0.6);
}

.time-period {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.company {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company i {
    color: var(--secondary);
    font-size: 0.85rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.timeline-content li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
}

/* Projects Section with Cards containing realistic mockups */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #151b2a;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(11, 15, 25, 0.9) 100%);
    z-index: 1;
}

.project-details {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.project-details h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tag {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.15);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

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

.project-link i {
    font-size: 0.95rem;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.education-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s;
}

.education-card:hover {
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateY(-3px);
}

.edu-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    background: rgba(129, 140, 248, 0.15);
    padding: 4px 12px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 15px;
}

.education-card h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.education-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Contact Details & Form Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.info-value:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-btn:hover {
    background: var(--primary);
    color: #0b0f19;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.contact-form-container {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: #0d1322;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

footer {
    text-align: center;
    padding: 40px;
    background-color: #080c14;
    color: var(--text-muted);
    border-top: 1px solid var(--card-border);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 40px;
    }
    .hero-content {
        max-width: 100%;
    }
    .btn-group {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }
    .hero-content h1 {
        font-size: 2.6rem;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(11, 15, 25, 0.98);
        border-bottom: 1px solid var(--card-border);
        padding: 20px 0;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    }
    nav.active {
        display: flex;
    }
    nav a {
        margin: 12px 0;
        margin-left: 0;
        text-align: center;
        width: 100%;
        font-size: 1.1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
}

/* Clients Section */
.clients-section {
    padding: 40px 8%;
    background: rgba(11, 15, 25, 0.4);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.clients-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 700;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    opacity: 0.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) brightness(1.2);
    text-decoration: none;
}

.client-logo-link:hover {
    opacity: 0.95;
    filter: grayscale(0%) brightness(1);
    transform: translateY(-2px);
}

.client-logo {
    height: 100%;
    width: auto;
}

@media (max-width: 768px) {
    .clients-grid {
        gap: 25px 35px;
    }
    .client-logo-link {
        height: 28px;
    }
}
