* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #2c5777;
}

/* Header Styles */
header {
    margin: 0 auto;
    max-width: 1500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: relative;
    background: white;
    z-index: 100;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #2c5777;
    font-weight: 500;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: #f2c795;
    text-decoration: underline;
}

nav ul li a.active {
    color: #f2c795;
    text-decoration: underline;
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #2c5777;
    margin: 6px 0;
    transition: 0.4s;
}

/* Hamburger Menu Animation */
.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}
/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c5777 0%, #3a7ca8 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero {
    background: linear-gradient(135deg, #2c5777 0%, #3a7ca8 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="20,5 23,8 20,11 17,8" fill="rgba(255,255,255,0.05)"/><rect x="50" y="5" width="3" height="8" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1" transform="rotate(20 51.5 9)"/><circle cx="5" cy="30" r="2" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="1"/><polygon points="85,25 90,30 85,35 80,30" fill="rgba(255,255,255,0.04)"/><rect x="40" y="40" width="4" height="4" fill="rgba(255,255,255,0.08)" transform="rotate(75 42 42)"/><circle cx="15" cy="75" r="1" fill="rgba(255,255,255,0.09)"/><polygon points="95,50 98,53 95,56 92,53" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><rect x="65" y="55" width="6" height="2" fill="rgba(255,255,255,0.06)" transform="rotate(45 68 56)"/><circle cx="25" cy="90" r="2.5" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="1"/><polygon points="75,10 78,7 81,10 78,13" fill="rgba(255,255,255,0.08)"/></svg>');
    animation: organicFloat 25s ease-in-out infinite;
}

@keyframes organicFloat {

    40% { transform: translateY(-15px) translateX(-2px) rotate(144deg); }
    60% { transform: translateY(-5px) translateX(4px) rotate(216deg); }
    80% { transform: translateY(-12px) translateX(-1px) rotate(288deg); }
    100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}


.hero-content {
    position: relative;
    z-index: 1; /* ensures text is above shapes */
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 1s ease 0.3s forwards;
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    opacity: 0;
    animation: slideUp 1s ease 0.6s forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideUp 1s ease 1.2s forwards;
}

.cta-btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-primary:hover {
    background: white;
    color: #2c5777;
    transform: translateY(-2px);
}


/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.calling {
    background: #f2c795;
    text-align: center;
    padding: 15px 0;
    color: #2c5777;
    font-weight: 600;
}
/* Portfolio Grid */
.portfolio-grid {
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 50px;
    max-width: 1000px;
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Front (image) */
.portfolio-front img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Back (title overlay) */
.portfolio-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 87, 119, 0.95);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover .portfolio-front img {
    opacity: 0;
}

.portfolio-item:hover .portfolio-back {
    opacity: 1;
    pointer-events: auto;
}

/* Touch devices - ensure hover works on mobile */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:active .portfolio-front img {
        opacity: 0;
    }

    .portfolio-item:active .portfolio-back {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Footer */
footer {
    background-color: #f2c795;
    padding: 40px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact h3 {
    margin-bottom: 10px;
    color: #2c5777;
}

.social-icons a {
    margin-right: 15px;
    color: #2c5777;
    font-size: 1.5rem;
}

/* Resume Link Styles */
.resume-link a {
    padding: 10px 20px;
    border: 2px solid #2c5777;
    color: #2c5777;
    font-weight: 600;
    display: inline-block;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.resume-link a:hover {
    background-color: #2c5777;
    color: white;
    text-decoration: none;
}

.copyright {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    padding: 20px 0;
    background-color: #f2c795;
}

/* Responsive styles */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* iPad portrait (768px × 1024px) */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: portrait) {
    
    .hero h1 {
        font-size: 2.8rem; /* slightly smaller than desktop */
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    nav ul li {
        margin-left: 20px;
    }
}

/* iPad landscape (1024px × 768px) */
@media only screen 
  and (min-device-width: 768px) 
  and (max-device-width: 1024px) 
  and (orientation: landscape) {

    .hero h1 {
        font-size: 3rem; /* closer to desktop size */
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    nav ul li {
        margin-left: 25px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 5%;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 999;
        padding-top: 80px;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 20px 0;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}